package com.junjiao.util.web;

import java.io.File;
import java.io.FileInputStream;
import java.io.InputStream;
import java.util.Properties;

/**
 * @author wanggz
 * 
 */
public final class MobileConfig {

	public static String userId;
	public static String telNunmber;
	public static String innerPwd;
	public static String mobileURL;
	public static String clientAgent;
	public static String ClientVersion;
	public static String APIVersion;
	public static String regCode = null;

	public static final String AMP_ENTITY = "&amp;";
	public static final String AMP_SUBSTITUTE = "~~~";
	public static final String AMP = "&";

	static {
		Properties pro = null;
		try {

			pro = new Properties();
			InputStream ins = MobileConfig.class.getClassLoader()
					.getResourceAsStream("mobileClient.properties");
			pro.load(ins);

			userId = pro.getProperty("userId");
			telNunmber = pro.getProperty("telNunmber");
			innerPwd = pro.getProperty("innerPwd");
			mobileURL = pro.getProperty("mobileURL");
			clientAgent = pro.getProperty("ClientAgent");
			ClientVersion = pro.getProperty("ClientVersion");
			APIVersion = pro.getProperty("APIVersion");

			ins.close();
			ins = null;

		} catch (Exception e) {
			e.printStackTrace();

		} finally {
			pro = null;
		}
	}
}
